<!-- Dom模板 -->
<template>
  <div class="paySuccessMain flex">
    <!-- Dom内容 -->
    <!-- 标题  -->
    <div class="confirmOrderTitle" style="padding: 0;">
        <p class="turnP" @click="closePaySuccess()">
            <i class="iconfont icon-zuojiantou-01"></i>
        </p>
        <p class="titles">选择支付方式</p>
    </div>
    <!-- 支付成功提示 -->
    <div class="rights">
        <span class="cirSpan">
            <i class="iconfont icon-querenwancheng"></i>
        </span>
        <p>订单支付成功！</p>
        <p style="font-size:14px; ">您可在"我-我的订单"中查看详情</p>
    </div>
    <!-- 完成按钮 -->
    <div class="submitOrder">
        <button class="settleButton" @click="turnCar">完成</button>
    </div>
  </div>
</template>

<script>
// import a from './a'; // 引入组件
export default {
//   props:["closePaySuccess","flags"],
  name: '',
  data() {
    return {
      msg: '测试',
    }
  },
  // 生命周期 - 创建完成（访问当前this实例）
  created() {
      
  },
  // 生命周期 - 挂载完成（访问DOM元素）
  mounted() {
      
  },
  // Vue方法定义
  methods: {
      closePaySuccess(){
        this.$router.history.go(-1);
      },
      turnCar(){
        this.$router.push("/shopping");
        //   this.flags()
        // console.log(this.$router.push);
      }
  }
}
</script>

<style scoped>
/* @import url(''); 引入css类 */
@import url("../../fonts/iconfont.css");

/* 标题 */
.flex{
    position:fixed;
    top:0;
    z-index: 3;
    background: #fff;
}
.turnP{
    position: fixed;
    left: 10px;
    top: 2px;
    height: 44px;
    line-height: 44px;
}
.turnP .iconfont{
    font-size: 24px;
}
.titles{
    margin-top: 0;
    text-align: center;
    font-size: 18px;
    height: 44px;
    line-height: 44px;
}

.rights .cirSpan{
    margin: 16px;
    color: #fff;
    padding: 14px 21px;
    border-radius: 50%;
    display: inline-block;
    background-color: #e44a4a;
}
.rights .cirSpan .iconfont{
    font-size: 60px;
}
.rights{
    padding: 40% 0;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}
.rights>p{
    padding: 2px;
}

.submitOrder{
    bottom: 26%;
    width: 100vw;
    position: fixed;
    text-align: center;
}
.settleButton{
    color: #fff;
    width: 28%;
    height: 40px;
    outline: none;
    border: 0;
    border-radius: 4px;
    background-color: #e44a4a;
}

/* 付款成功页 */
.paySuccessMain {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100vw;
  height: 100vh;
  transition: all 0.5s ease-in-out;
  background-color: #fff;
}

</style>